#ifndef __KEY_H__
#define __KEY_H__

#include <STC12C5A60S2.H>
#include "types.h"

#define KEY_PORT        P3
#define KEY_MODE        0x08    //P33
#define KEY_SWITCH      0x10    //P34
#define KEY_INCREASE    0x40    //P36
#define KEY_DECREASE    0x80    //P37

void keyScan(void);
void keyProcess(uint8_t keyTrigger, uint8_t keyContinue);

#endif